store user info in db