Insert trj and deal data into PostgrelSQL realtime