updated the db_update

updated the db_update to take in id field