refarctoring
Adding mongoose