I would restore your database from a backup done by Resolve, not Time machine. It is just a good idea to keep a backup of individual projects regularly and a total database backup monthly. This should be to another drive, not the system drive.
Secondly I would reinstall software like Resolve after the Time Machine restore. If you do a proper full install then import the database or project backups, I would expect them to open correctly