Unlink import file when finished

fixes #2493
- Update db import version (in case it doesn't exist)
- Properly unlink file after import or error
Merge pull request #2494 from halfdan/2493-import-tmp

Unlink import file when finished