Database size, corruption, and cloud backup concerns

Set your device state history and events to 11.
Do a fresh backup
Soft reset your hub
Reload your database
After database loads, reboot your hub.

This has taken care of my DB issues.

Setting your history and events lower than 11 can create problems

You'll also want to read through this as well to gain a better understanding of the database within hubitat