Not good enough :)

This doesn't solve the `UnboundLocalError` exception because you can't `if unknown_variable:` in python. 

Change it to:
```python
connection = self.database.connection()
try:
    # things
finally:
    connection.close() 
```
please