Minimize the differences between PostgreSQL and SQLite