Returns configured DATABASE dictionary from DATABASE_URL.

def config(name='DATABASE_URL', default='sqlite://:memory:'):
    """Returns configured DATABASE dictionary from DATABASE_URL."""
    config = {}
    s = env(name, default)
    if s:
        config = parse_database_url(s)
    return config