Added updateProfile function to DatabaseHandler class