somewhat working test code. Changed the code to test the connection between patients and doctor. Still needs more testing