Updated SQL-Script