Prefer to not nest things so much.
```
function(db) {
  if (db instanceof Error) {
    throw ...
  }
  // do everything else, now at only 1 level of nesting.
}
```