2.10 fixes

Fixes bugs mentioned in issue 527: using OPL-update with library version 2 caused mysql errors, and sorting of problems in LB1 when viewing problems from a homework set should be the order they appear in the set, not alphabetical by path.