[cubicweb/postgresql] bug fixes in context and pg_hba generation [reviewed]