cleaned up code, and another est For DatabaseAppointment