added Database var

As of Django 1.4 there's a Database var in base.py in backends. Some apps can rely on this. In Django 1.6 BinaryField also relies on this.

sorry for some extra commits