database import handler.  this could probably be more generalized