Update database migration and fix CSS on thermostat page