TimeDiff sql function
duration is now computed everywhere on server side