Use ptrs instead of refs for db params