refactors MassObject and SQLObject