search uses db