WIP refactoring redis and mongo timeseries support