Issue #19: Less idiotic way to check whether to reimport core sql dbs