changed sql parameter parsing to use strategy pattern.