Added subscriptions to database and api