Add function to convert from mangitude to dB