how to use custom database in state machine workflow in workflow foundation
can we update database from workflow when state change happened in state machine workflow