Actually assign something.
Add factory method for db instance with default parameters.
Tighten up str rep of custom exceptions.
Allow for cmd to be either string or list.
Generalize log path generator to provide for other extensions.
New util mkdir.  Use it in setting up default path for logfile.