NITerAPI: add class AuthDB

remove func active() in LongTimeDB
NITerService: adapt to AuthDB

modified func get_distillation() in class Acvitivy
modified func requires_permission() in Auth.py
bug fix