In answer to your question, there is no db to a midi file. Midi is nothing but a bunch of instructions. The audio you hear is from the instrument that receives the midi instructions.
See the post that just went on last week. Even though it is not the same question, the answer is the same.