Adapt db scripts to use config and sample data files #244

see #244