implemented DB connector in permissions