begin_transaction in mysqli started in php5.5 - alternative implemented