remove logging in CalendarMilesHandler and put db call in thread