COMPLETED structrure of database