ISSUE 5256: Using queryDB to make database query