db.sql creation

db.sql creation and inner structure definition