Fixed database configuration settings

Settings file now handles the case that dj_database_url is not installed as well
as the case where dj_database_url is installed but not configured. If
dj_database_url is installed and configured it uses that setting as usual