Refactored ListSQL using generics. Added CallListSQL