Modified the database script