switched database from SQLite to PostgreSQL