Updating QTestUtil getcurrentdb
removing unused stmt