new function save pictures
Change mydata.db