Stream timing with databases