Add error handling to abook db lookups