Modified metatData
Removal of enumerations and included SQLite access for state management