log only submitted searches to the recent_searches table
Created by: ijt
Also, only spawn a single goroutine for this and send queries to it over a buffered channel to avoid resource leakage.
Fixes https://github.com/sourcegraph/sourcegraph/issues/4067
Test plan: manually tested locally