Refix sql upgrade file