In 1974 , democratic elections and a referendum created a parliamentary republic and abolished the monarchy .