lib-db MDL-25789 Corrected discrepancies in old upgrade code and install.xml