PR rationale:
> Code in the libbitcoin_kernel library should not be calling ArgsManager methods or trying to read options from the command line. Instead it should just get options values from simple structs and function arguments that are passed in externally. This PR removes gArgs accesses from dbwrapper and txdb modules by defining appropriate options structs.
Add DBParams and DBOptions structs to remove ArgsManager uses from dbwrapper.
To reduce size of this commit, this moves references to gArgs variable out of
dbwrapper.cpp to calling code in txdb.cpp. But these moves are temporary. The
gArgs references in txdb.cpp are moved out to calling code in init.cpp in later
commits.
This commit does not change behavior.
This is a partial backport of [[https://github.com/bitcoin/bitcoin/pull/25862 | core#25862]]
https://github.com/bitcoin/bitcoin/pull/25862/commits/2eaeded37f3a07c35eef38d9a80c1e5fbd4d41ee