add sql printing also into find_field func