cleanup of moved files
deleted unused sql queries
refactoring timeseries sql generation