db changes
fixing error
fixing errors
Merge pull request #667 from antgonza/prep-sample-template-to-db

db changes