refactored business package.
Created almost all data rest functions.