Edit SQL structure

Edit SQL structure