add materials model and update db for localhost