Working server side pagination and searching