fix for detecting postgres