node based rest service using mongoose and express