retain lock while doing insertion of tabular data for PHP