adding mongodb and restful api for users