Make search work for both psql and sqlite3
Revert pagination with kaminari

We get a segfault with ruby 1.9.3-p362.