Currently the website is not registering any patients in the system. Basically any of the information they type or submit is not being saved. The problem is probably in the database. Im not sure though. The problem is actually the retrieval of data for each patient.
The data (migraine, diseases, etc) is not being saved as an individual, thats why it was always showing yes for all diseases and all patients.