Added subscription functionality in the backend