updated write page(email,pw,body now inserted into db)