Database changed to object. Method unsubscribe added