debugging settings.py database issue