added workflow database persistence