modify action and model file. update database