Fixed permissions page
SQL fix