add some more mock structure so tricky DBAPIs like pypy work