Added files related to importing database.

Added a few things.  Also fixed minor issues in exporting files.