'Function to reterive a paginated list of users from
users list. This will return a json object, which contains
list of users and the total number of users in users table.
Args:
order (str): column name to order the select by this column
start (int): start number to begin the query from
limit (int): number of rows to reterive
Returns:
defer.Deferred: resolves to json object {list[dict[str, Any]], count}'

def get_users_paginate(self, order, start, limit):

    is_guest = 0
    i_start = int(start)
    i_limit = int(limit)
    return self.get_user_list_paginate(table='users', keyvalues={'is_guest': is_guest}, pagevalues=[order, i_limit, i_start], retcols=['name', 'password_hash', 'is_guest', 'admin'], desc='get_users_paginate')
