def _urify_db(path_or_uri):
    """ Get a SQLAlchemy compatible database URI.

    If a path is given, append sqlite:/// in the front, if protocol details are already provided,
    return unchanged.
    """
    if '://' in path_or_uri:
        return path_or_uri
    else:
        return 'sqlite:///%s' % path_or_uri
