added generic get_details method

  also started using it in query.py