* Needed to make it work with errortrace, don't know why
* errortrace + some bug correction
* corrected many error for sql terminate query
* corrected a test