added write access switch to samples table