Updating database script