added DB::getExecutedQuery and test