db query working for eventCalendar