Implemented db.addUser functionality