Fix RPC.convert usage to return a copy of args and kwargs

issue3521
review1921002
Database.list must be run under a Transaction to set flavor

issue3508
review1931002