ghetto fix for postgres connections