Implemented PUT to update objects in the database