“Guys” can be used in English as gender neutral to refer to a group of mixed gender.
You will even hear women refer to other women as “guys.”
The closest linguistic equivalent with a feminine tilt would be “gals.” “Guys and gals” is a rather informal variant of “ladies and gentlemen.” (Note the reverse order.)
Edit: As noted by @kitukwfyer in the question comments, it is possible for “gals” to be derogatory when used by itself so be careful. It’s not likely to be a problem used in the pairing above. Used carefully it’s probably safe, but used by itself it could be heard as mockery.
Saying the following is unlikely to offend anyone:
“The gals talked in the kitchen while the guys went out to see Fred’s new truck.”
But walking up to a couple women on a street corner and saying this might get a strange reaction:
“Excuse me gals, where is the grocery store?”
Saying this to a couple girls might make them doubt you:
“Hey gals come with me.”
But if you are explaining some game instructions and say the following it’s likely to be fine:
“Alright, guys on this side of the room, gals on the other.”
English is not unambiguous, so there is no absolute rule. However, generally speaking the last noun is modified by the preceding nouns. "Sofa box container", has container as the last word, so it refers to a container, and the type of container is one for a sofa box.
When you hyphenate the meaning doesn't change much, so, from your example:
Queen-killer — a queen who is also a killer
Is not correct, a "queen-killer" is a person who kills queens. The hyphen just tightens the relationship.
The emphasis is the same with the genitive but the relationship is a little more ambiguous:
Queen's killer
Can mean a lot of things, the two most obvious candidates being a killer who works for the queen or a person who killed the queen. Nonetheless, the rule still applies, it is a killer, and the type of killer is "queen's".
So the bottom line is that usually the last word is the main word, the rest are modifiers.
For your example, database containing machines would be appropriate, since the main subject is the machine, and the rest say what type of machine. In this particular instance though the idiom would be just plain database machines, or database servers.
Best Answer
If you have questions like this, I suggest you use websites such as the Google Books Ngram Viewer. This allows you to search all published works available to google for words and phrases.
As for an answer to your question, I did the search for you and I found that goddess queen and god queen have minimal but some usage. Goddess empress and god empress have none. God queen appears to have had more usage in the past, but modern usage has dropped to a similar level as goddess queen.
I also attempted to look for divine queen and divine empress, but they weren't any more popular than their god(dess) counterparts.
To make it simple, there is no officially "correct" form. It depends on each individual ruler. There is even precedent for women to adopt male titles as rulers, such as the female pharaoh's of Egypt.
On a personal level, I immediately gravitated to god queen myself. While goddess is exclusively feminine, there is plenty of precedent for interpreting "god" as a gender neutral term, especially in monotheistic religions. For example, in Christianity, even though God is often discussed using masculine pronouns, God actually has no gender. As a side note, within the Bible, God is occasionally referenced using feminine pronouns as well.
This is further complicated by the specific situation you are talking about. Is the ruler a reincarnation of a particular god/goddess? Are they descendant from a divinity? Are they the literal embodiment of a deity (possession)? All of these factors can change how that individual ruler identifies.
I recommend if you're translating a foreign title, just stick to a literal interpretation of the name. If the term is gender neutral, use deity instead of god/goddess. If you are inventing a title for a fictional character, then consider what traits you want to portray and what the motivation is of that character.