Minor fix to createDeviceChain

Fixed whitespace error, added argument for queryColumn