minor adjustments to sql script to prepare for demo