Fixed connection string for PG db when not going through gedal.