#3 fix sqlite error using bulk_insert