Add transaction in INSERT methods in php file for sync to ext