basic postgres historical import