Update database script