save and retrieve sectors and categories