selecting user information from the database