Timeline now works with the database