improve database import