Implemented the class method .update_or_create_search_term

It works fine in IRB but haven't figured out how to test it yet.

First stab at writing the spec for the above method.

Also updated schema to default the when array to an empty array