Changed database from SQLite to PostGresql