Fix reading temperature from db