fix postgres import, use new style