Implemented aspect for intercepting DB errors and fixing sequences. #763