added new queryDBresult() function to output just the  object