Reconsider Mentat command-line tools
Administration scripts, which access database (db cleanup, management, abuse groups import, ...), cause code to be more convoluted than necessary. Some object mangling/subclassing/wrapping magic has been used to be able to access original db access meant originally for Flask based web apps (idiomatic flask objects have been problematic to use from cli). However, new Flask comes with flask-cli, which might simplify code on both sides. We need to look into it and weigh work/pros/cons.