Added compatibility with version 0.9

Patch originally proposed by Sebastien Blaisot.
An IF decides what database model use to be backward compatible with versions <0.9