[rrdgen] Sets file permissions after creating database