modified mongoose db for threading...