fix for postgresql support