MOODLE2: Recovered log database fails function