changed to use local db
sorted list by time