fix dnd for db