fixed a bug that resetted the user level when setting the subscription status in a course instance
added a couple of database disconnection and fixed indentation
implemented new complete condition based on user level in a course instance
Merge branch 'level-complete-condition'
Merge branch 'master' into ada-api