upgrade static, sql