merge DB and REST code
returns some autocomplete results now - "all" results not returned yet