fixes postgresql support