Makes db import idempotent