Database actions using Node JS