bug fixing phase 1
replace sql.sql