change query method from where to find_by in search#history
working on putting together date structure for d3 history