use database to store user info