def to_settings(settings):
    """Return a dict of application settings.

    Args:
        settings (dict): Database-specific settings, formatted to use
            with :func:`connection_url`.

    Returns:
        dict: Application-level settings.

    """
    return {'DATABASE_{}'.format(k.upper()): v for k, v in settings.items()}