Ok, here is the database debug error I am getting, I have gone into files and looked for anything out of the ordinary, but DB's are not my strong suite. But here is the error page in the picture.
This is what is on line 331 & 332 from database.php where the error occurs from the attached picture:
$stmt->execute(); //TODO setup profiler
$this->affectedRows = $stmt->rowCount()