Added multi threads to the SQL driver