trex tabel creation sql