addModel method
Adds the given model
to the map and the given database in repository
Implementation
Future<T> addModel(T model, {String? databaseName}) async {
final database = specificDatabase(databaseName);
final newModel = await database.saveModel<T>(model);
addLoadedModels([newModel]);
return newModel;
}