Db Adapter improved in order to fully use tablegateways