Typo. 278 should be deleted. 

I meant to say 

```
if there is a model flag
  if we have connection to the database
    if there is a model$id
       query database
    else if there is model$name
      query database
    else 
    (not sure?)
use sensible defaults or fail
```