Do not fail the info page if we can't get the ntp offset
Properly get the postgresql connection and add support for older versions of psycopg2