The Extensible Storage Engine is one of the hidden gems of Microsoft APIs that doesn’t give much attention but is the foundation of very popular technologies like Exchange or Active Directory. May be it will be a good idea to get your hands a little dirty with this.
References:
http://msdn.microsoft.com/en-us/library/ms684493%28EXCHG.10%29.aspx