Downgrade to revision

def down(tag, sql, revision):
    """ Downgrade to revision """
    alembic_command.downgrade(
        config=get_config(),
        revision=revision,
        sql=sql,
        tag=tag
    )