Add warning column and API to the DB. Fixes #4327