Nasty little change to help appliance object

This should not be done like this, quick workaround. In future we need
to make use of the appliance object and use the DB and Version from
that.
Merge pull request #1050 from psav/nasty_context

Nasty little change to help appliance object