Finished exchange of SQLite with PostgreSQL