almost working with mongoose