add mysql indexes on sudid, devicename, datetime; clean up pulse bucketize logging