clean up model and db