Preparing modified object for performing an update query