database script replced