Strictly speaking, dB signifies the ratio of two power values: dB = 10 x log(P2/P1).
However, it is common to assume (absent a specification to the contrary) that the impedance levels at the two measurement points are equal, giving the other common equation dB = 20 x log(V2/V1).
The voltage ratio version is correct for equal impedance (e.g. 50 ohms). In a typical voltage amplifier, where the input impedance is high and the load impedance unknown, it is still a useful definition. So long as you use the same voltage measurement (rms, peak, peak-to-peak, etc.) for both voltages, the ratio is independent of the measurement type.
Where things get interesting is with opto-electronics, where the output current is proportional to the input optical power, so a 3 dB reduction in light power gives a 6 dB reduction in output current.