Use correct arg_pos for db_type argument. Reduce memory footprint with selectable db batch size.