Working import and view, with database deleting correctly onDestroy (needed to close db connections whenever we opened them).