@craigspaeth: Hoist db references & clear error message