moved SCHEMA_VERSION to Config object
fixed error in data extraction from db data (categories)