Replaces array pagination with DB pagination for likes page