load todos from indexed db when offline