Fixes to database code to correctly call methods with variadic args.