Create default database, fix permissions