copy over postgres adapter