Added EFQ function to querry the database. The appointment validator now checks for the DOCTOR field too, not only for the date field. So there can be multiple appointments on the same date if the doctor is different.