Changed db from sqlite3 to postgresSQL