better refresh in mysql