Changed adapter from SQLite to PostgreSQL