Add providers, set file permissions, setup database.