Implement builk insetr with transaction