Fix db patch for #113.