Insert and Update method moved into Db.php