Add clone database error
Refactor Workflow engine