moved order and pagination to DB