Revised and simplified the ranking model and db-structure