Improving Activity Mining in a Smart Home using Uncertain and Temporal Databases