Added schema, save subscription to DB, session messages.