added mysql update feature