updated sql write speed