Adds logic to catch errors thrown on insert with Sequelize