storing search terms when searched by user