OO-291: fix load for update for PostgreSQL, fix unit test for course group management (always consume entity before queriying the database!), fix the statistics rights in the course view