Have you thought about using Moosh (https://moosh-online.com/) if you want to do this kind of thing.
I'm very reluctant to suggest manipulating the database directly. Firstly, because it is plain dangerous. Secondly, because so much stuff is cached in Moodle - you can change the DB and nothing happens because the related data is in the cache.
I'm very reluctant to suggest manipulating the database directly. Firstly, because it is plain dangerous. Secondly, because so much stuff is cached in Moodle - you can change the DB and nothing happens because the related data is in the cache.