replaced mongo with mongoose