I cannot find the MSI format specification. It says that its an open standard, but I don\'t see any documentation - just bits and pieces of information here and there.
Are you sure that .MSI database format is required to modify some installer? Have you heard about the Orca tool? If not, this MS KB article is for you: