modify model and action file and update database.