add sql code for 1.3.3-1.3.6