Database connect and user info first approach