update mysql model database