Similarity in Postgres and Rails making use of Trigrams