Add temperature data to the database