Update from SQLite to PostgreSQL.