pagination with date picker add sql dump