READONLY: allow specifying the db name for setdbreadonly instead of just the hash