Fixed sql bug caused on Jan 8 by replacing battery in 1st floor temperature sensor.

Minutes and seconds now ignored when joining tables.