fixed mysql update script a little