Refactored database for easier planet creation and fixed voting/threat level issue.