(PDB-763) Add ability to detect missing trgm indexes and advise how to setup PostgreSQL

This patch adds the ability to detect:

a) that the database has the pg_trgm extensions installed, if not advises how
   to install them
b) that the database has the correct indexes installed, if not installs them

Signed-off-by: Ken Barber <ken@bob.sh>