fixed database import