made insert from query more consistent with insert from variables
made insert from query more consistent with insert from variables

fabiansinz/datajoint-python,dimitri-yatsenko/datajoint-python,datajoint/datajoint-python,eywalker/datajoint-python