Mass edit posts in Ghost database

Hello, is there a way to bulk edit (e.g. put in draft or delete) posts via Ghost database.
I know that it is not possible to do via Ghost admin panel. But, maybe there is a way via database?
I need to edit few thousand of posts.

I have found this article from 2015 - can it still be done?