Changed database update script