Adding SQL structure