added SQL structure