BaseRepository & StaticMySqlStructureStore & SimpleStructureStoreFactory & fixes