What is the relationship between democracy and socialism?

You can have a socialist democracy. A democracy makes decisions based on instructions from voters and socialism intends to take the production of industry and hand it out to people with equality in mind.