Changed runTrans to pass Ctx instead of DB.