db.put user bugfix in user middlewaver