Refacor: spilt entry backend basic api from EntryThing to  EntryThingTrait
thing.base: improved rank users api use in cluase sql