Add support for db error handling in insert post. Update triggers