(db+dbtool) Datamodel changes.

Added missing dbtool.

Added uid/gid to target (if desired, otherwise default user/gid will
remain). Target / Config argv has been split into separate tables
to better match exec* family of functions, and to take advantage of
_stringquery wrapper.
(db+lua) extended interfaces, some stubs left to take care of.