[untested] wire database to http