added database, timescale options, data cleaning, color coding