fix 1.2-1.3 sql script