Data Preprocessing For Time Series Database