db patch change metadata perms