Changed condition for import database.