If those databases don't include the ratio you're looking for, you can calculate it yourself using the underlying financial information. The Corporate Finance Institute has some guidance.
Ratios for Many Companies
If you want to pull the ratios for many companies at one time, your best options are:
If you want to create a list of companies that have a specific ratio (e.g. they have above a certain debt-to-equity ratio) you can do that in many sources. Some options include: