Updated the database script