Adds postgresql support.