Fix database declaration for Django 1.4+