EZP-23129: fix SQLite and Postgres