Converted CSRF model to use query API from SQLAlchemy.
Removed unused DB_CONNECTION variable from settings.py