common: Fix variable references in import to db.