Access underlying SQL database under Tridion Docs

We are in the process of creating some reports in a 3rd party system, which needs access to the SQL db in Tridion Docx. We are looking to query topics & map counts, custom metadata and some other metrics. Is there a way to access the underlying DB directly?