database resolver