Completed the post,put,delete functions using node.js and connect middleware