Fixes #57 fix sql update for older magento versions