Fixing settings to load database from settings.py