Save user info to database on login