Replaced SQLite with PostgreSQL