AddRecord done.BUG - works but throw Seg. fault