mongo db scripts
Reorganizing socket subscriptions