renaming activity's 'permission' to 'visible'

Renamed 'permission' to 'visible' to match new database structure (see commit 5d20432)

This fixes issue #1089