Consolidated Sector with helper functions

I have simplified the Sector class with helper functions.
Script to make a sector database

Saving the database variable in a .mat file.