Add a new system for defining which subcommands need a db lock