fix the missing template; get the setup.sh script working with the sqlite db