Changing the native sql query in the users index to cakephp query along with pagination.