use sequence to manage database change