added opportunity functionality to data backend