Changed to PostgreSQL in stead of SQLite3