adds datatables, converts $_POST to params