changes to crate the annotated dataset and persit it to database