[EDIT] upgrade sql