Finalizing DatabaseMass class