added ability to import database