Downcase host for PostgreSQL

PostgreSQL is case-sensitive for queries: 'www.MINITRUE.gov.uk' is
not the same as 'www.minitrue.gov.uk'. This change fixes all 5 failing
tests after switching to PostgreSQL.