Added logic to insert Subscirptions in the database.