fixed missing permission check and db locking
showing more information in error dump table
fix
Merge pull request #841 from t-gerhard/errordump_fixes

Errordump fixes