Don't read configuration on global level. You can Uuse `from invenio.base.globals import cfg` instead.