How do I stop cursor agent from deleting my database

In a sequence of operations the cursor agent deleted/altered database. I am not why there are no guard rails/safety nets for agents. Unfortunately I did not have the backup of the data. Please recommend how this can be avoided? Can we also please add a functionality that allows the user to limit the amount of tools cursor has access to ?

Disable yolo mode or add them as non allowed commands?