He reformed the constitution of Athens , and set it on a democratic footing in 508\/7 BC . He is credited with reforming the constitution of ancient Athens and setting it on a democratic footing in 508\/7 BC .