dead code
tiny bit of cleanup
fix too-clever notebook visibility logic

it was delivering random results when notebooks were missing from the db
fixes #469