changed the datatable api, so you can pass a custom query and a custom
count query