Fixing upgrade 2 for mysql