User data is stored and retrieved in database.