mongoose and poc code