taken out "stmt" from Query methods

just moved it to the top as global rather than have it in all parameters
of all methods