Update app.py

Edited configure_logging function, and updated database variable name.