changes

started adding the section that will write the contents to the database