search result storage working as expected

-user ids row updated if user searches for same thing that a previous
user searched for
-new row added if user searches for something new