Added a check enforcing the id to be set when performing an update operation
Fixed a bug in the update statement where it wasnt doing a where clause