Add use Exception on Sql class.
Add unit test method for upNbQuery and getNbQuery