improved spec; added bootstrap script since sqlite gets confused