Fixes and additions

Added sql to filter on dates pass from html, fixed UI issues with charts
Fixed error on datastore indexes file