overheating logic added to db