fixed error on DB conn