added initDB, added CatalogEditPrefernce but for now doesn;t work