Calendar works 99%, need to fix a bug that ignores the first date selected if that date is today. Fixed the database connection, Made the code faster by adding break; when the necessary result ina list had been found.