Training frame work, proposed sql calling