add project function and modify all model from db