Add main structure, database and model for spare