[RCD] Database attachment backend, Please include this patch in trunk