functional moodle pre production deployment script