SQL script updated
Bugfix