tsdb refactoring to sqlalchemy, geocharts in dashboard