Added behavior to save button

 * added new method updateUserPincode in Database, because we use
   the pincode as a key in our hashmap, which means that if we change it
   in the user object but not in the db, we will not be able to register
   when a user tries to enter with the new pincode