Modified user.js to use mongoDB

Change-Id: I57d9c6e373702ea19a0203364dfc31488da526f9