Implemented paging on H2 and MySQL query for getting events