writeToDB test for updating users