Log temp and humidity into DB