fix some db issues

fix some db issues  and succeed to list timeline