Generalize lockstatus name to httprequest.  Use httprequest send_request
code from updatedb.
Add action paramter that defaults to lock.
Break up updatedb.py and viewdb.py into two files.  Remove readline
loop and replace with a yaml.load call.