Added changes to call callBackEndSync only when all SQL transaction has been commited