added newmaterial page, now connects&posts to db