Complete migration to PostgreSQL