insert ignore will insert or ignore if the pk exists. it should actually be an upsert, (in mysqlish: insert.. on duplicate key update, like the repo is doing now), but that particular logic is implementation dependant, pgsql does it in a different way, so we should strip the "insert..." part out of it i guess