Using database generic code for loading objects.