Single NodeJS api to make a crud with mongodb