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