fixed pagination for getAllBooks in web2py controller