Changed database from SQLIte3 to PostgreSQL