Open the MimeMagic db only once. Removed commented code.