Updated SQL-script