[SD-714] [SD-718]: Created 2 different Services one for DB and another for AD. Registering the service is done based on Authentication Mode.