more PDO refactoring, table filters, date fixes, and more