Added multiple threads when importing files and improved the sql query buffer.