make the mrid field of medical_record auto incrementing
finalized createMedicalRecord api call