Add basic database manager for Flow and FlowNode