db foundations