Fixed configuration for connection to Moodle 2
Fixed permission and set connection to persistent