I work in an accounting and auditing office, and among the clients of the office are restaurants, hotels, and supermarkets that sell alcohol. Our work is limited to collecting invoices, whether purchases, sales, or expenses, and recording them in daily books. We also review income and sales taxes on behalf of these clients.
You are more knowledgeable about the nature of your work. If you see it as assisting in wrongdoing, then it is forbidden, as Allah The Exalted Says (What means): "And cooperate in righteousness and piety, but do not cooperate in sin and aggression" [Al-Ma’idah/2]. However, if your work is merely documenting the reality, then I hope there is no sin upon you. The the pious predecessors (Salaf) used to take the tithe from the traders of the People of the Book, even if it included alcohol, after knowing the value of their goods. And Allah The Almighty Knows Best.
Is it permissible for one to masturbate in order not to commit fornication?
This is called committing the milder of the two evils such as eating a carcass in fear of death, and this happens when committing fornication is very likely to occur.
Does the deceased hear the supplications or recitations of those visiting his/her grave? And does making constant supplications for the deceased who didn`t adhere to performing the prescribed prayers ameliorate his/her affliction?
Praise be to Allah the Lord of the Worlds.
In principle, the dead hear the living since it has been rigorously authenticated that the Prophet (PBUH) ordered the bodies of the idolaters slain in the Battle of Badr to be buried. He then approached them and called them one by one and said: "Have you found what your Lord promised to be true for we have found what our Lord promised us to be true." Umar asked him: "O messenger of God! Why do you speak to lifeless bodies?" The Prophet (PBUH) replied: "By the One Who has sent me with the truth! You do not hear my words better than they do except that they cannot respond." [Agreed upon].
However, not all the deceased are in the same situation because Allah The Almighty Knows: "Before them is a Partition till the Day they are raised up." [Al-Mu`minun/100]. Moreover, supplication reaches the deceased. And Allah Knows Best..
Which is better, to pray at a prayer place (Musala) whereas many people pray in it, or at a near by mosque in which a few people perform prayer?
Praying at the mosque that has a bigger number is better so long as the number of praying people at the other mosque permits performing prayers in congregation. And Allah Knows Best.