Integrate retrieving user from database