The design, creation and survival of democratic laws (DEMOLAW)