add purify before write in db
add rating system