Added trigger for bucg DB (mysql)