merge DB and REST code
this is a busted POS, but it returns some autocomplete results now - "all" results not returned