change to mysql state