Add DB update code and centralize the sample data
Make some things options instead of hard-coded