updated the database script