* Added async logging for trace log

* Added description for new Exception classes
* Refactoring of functions which interpret sql exceptions
* Other minor code review changes