Update database rebuild script.