update db handling structure
update workflow