Applied prepare statement fix to update, insert and delete.