Use connection from arg in prepare fn.