Can retrieve data from database. Right now MRN returns vary by function call. usually correct value returned on first call, but subsequent calls lead to incorrect return values for MRN. Not sure why.