Basic working query paging
Catch Empty exception on connection id queue properly