added basic postgresql support