datasetId retrieved from database

changed because of resetting the sequence