The world setting is as follows:
The main species is human and beastoid(animals that walk on two legs and have hands capable of dexterity, mostly like dog, wolf, cat, bear, rabbit, goat). Half-blood could exist. There are animosity between them, with beastoid being ex-slaves to human.
There were a much more advanced species of ancient humanoids that uses technology that were capable of colonizing their moon, and built orbital elevators with solar panel (think a more 26th century human, or the ancient Eldorian in Gundam Build Diver: Re-Rise). But for some reason they all left this planet long time ago, but left behind ruins of labs, factories, satellites, the orbital elevator, and monsters that would sometimes awake and destroy a few city. They created these two above, as well as a few other species on the planet, thus the languages spoken are all derived from the ancient one's own (like from Latin to German, French...)
There are magic user in the world, but the numbers are not much, and their powers vary, but none of them will be powerful enough to decide an war after medieval era. The ancient ones DONT use, and have NO idea what is magic.
Because the main species all start from Greek/Roman era technology level, there were a lot of stuffs, including psychological ones, they could not understand and would resort to religion. Now the problem is I want the technology development, and their reverse engineering of ancient technology being un impeded by state religion personnel (if the religion actively encourage scientific development, it is better). But seeing how in the past, saying Earth is not flat and is rotating around the sun could get the people being roasted on a stake. How should my fictional religion be promoting science?