trying to get db obejct into widget - but failing miserably