initial the db support.
use session to track workflow instance ojbect.
clean the code structure.
add more tests.
sequence pattern passed.