add indexes for search tables; use pg_trgm extension to speedup ILIKE queries