add save rate feature.
add calculate rate feature.
add sql.
Merge branch 'ranking'