changed from mysql2 to pg database