some more fixes to SQL data Driver