wipe views before foundation database code is executed

See https://github.com/xtuple/xtuple/pull/1774#issuecomment-54475026
Like this?
http://stackoverflow.com/a/13653683