Allow DB version > 4
Fix segfault on osx 10.8 from uncaught exception