Fixed the query to get all the users