[refs #57] Adding and cleaning up some bugs in the DB import script