retrieving connection from openmrs and using it to query our tables