fixed roles problem in sql script