fix when IsSqlKey is generated
remove uneeded import and debug code