adding ranking and change Database table.