- added a general exception for extensions
- added the getTmpDir for the database