Change database file permissions