Add base model and routes