updated db interfaces to store agent tstart and tstop