fix perms on notifier db, and also fix syncdb