Save user data to the db after logging in