Fix mysql5 permissions DDL and extraction