Modified database script