Retrieve user data from DB with single query once. Use same query for check if user exists