SQLite to PostgreSQL conversion