database import functionality