read uri from sqlite and save as a yaml file