Replace SQLite with PostgreSQL DB