There are two executables here.  See setup.py.   One executeable, teuthology-updatedb, starts up in main, and the other teuthology-viewdb starts up in view.  Maybe we should rename the teuthology-updatedb  function now named main() to be something else so that there is no confusion of there being a main entry point.