resolve db