by topic backend for mongo db by Tony