implementing a new version of the db-backed stateflowgraph + its test cases this version saves textual data and  refactores the keys