fixed database import bug