update db sql

updated db sql
also round temp rate