delete warnings model and modify db