Catch database exceptions on init and lookup.