wrap query details in as optional parameter and return bundle of RowSet and QueryDetails for the executed query