fix peer stats. db truncate on init