function assignIDbyID( q1, q2 )
{
	var obj = []
	for( var i = 0; i < q1.length; i++ )
		for( var j = 0; j < q2.length; j++ )
			if( q1[i].id == q2[j].client_id )
            {
				obj[i]=q2[j]
                obj[i].slot = q1[i].slot
            }

	return obj;
}
// assignID: sync data from clients and other tables by database id

sync data from clients and other tables by database id
sync data from clients and other tables by database id
function assignIDbyID( q1, q2 )
{
	var obj = []
	for( var i = 0; i < q1.length; i++ )
		for( var j = 0; j < q2.length; j++ )
			if( q1[i].id == q2[j].client_id )
            {
				obj[i]=q2[j]
                obj[i].slot = q1[i].slot
            }
	return obj;
}
function assignIDbyID ( q1 , q2 ) { var obj = [ ] for ( var i = 0 ; i < q1 . length ; i ++ ) for ( var j = 0 ; j < q2 . length ; j ++ ) if ( q1 [ i ] . id == q2 [ j ] . client_id ) { obj [ i ] = q2 [ j ] obj [ i ] . slot = q1 [ i ] . slot } return obj ; }
assignID: sync data from clients and other tables by database id
assignID : sync data from clients and other tables by database id