Fix creating a new permissions DB; fix new site creation.