Implemented the updating of users in the database