Flows module db structure