Correction for unknown attribute, `_db_api_2`

The following error was occurring when checking for the existence of tables:

```
AttributeError:  'DatabaseLibary' objec has no attribute '_db_api_2'
```

These changes should resolve this problem. I also allowed my editor to remove trailing whitespace from the source files.