Moved pyesdoc db sub-package into api.  Rationalized command line parameter passing.