db deserialization fix; examples fix for certain browsers

fixed error received when loading a database created before dynamic
views were added; fixed examples to work on firefox