Pass bdb into Index, move configuration of app object for gunicorn to configured_app.py.