Persist permissions in the database.