This isn't specific to this PR... but what if the db connection is lost before we call this - there error is lost...?