xrdp-ng: make use of read/write from tables