ensure db is created before import