Extracted sensitive settings to local_settings.py
Closed an unclosed database connection.