Changed SQLite for Postgres