added fault tolerancy with mongodb;updated upstart scripts for autorestart