Updated DatabaseHandler to store and retrieve user details