need to make function next, pass in id, # of samples
functionized creating sample dbs.
fixed bug.