1. correct use of 'sql' string clash with sql pacakage. 2. checked type conversion.