Fix search.

Card #28
Configure travis-ci to use PostgreSQL as database.