datatables for advanced query tested and working