almost works saving trajectories; working on interpolatoin
successfully write trajectories to the db