store temperature in database if enabled