Fix for import script so it doesn't bomb if there are no entries in the DB.