First draft of SQL structure