temporarily adding pg_copy code to insert dict in prod