Mining and Similarity Search in Temporal Databases