Refactored writing to table into search helper.
Some thoughts on board structure.