database script updated