Consider the Forena module (disclosure: I'm a co-maintainer of it), here is a summary of it:
Forena is built of the idea of using SQL to get data out of a database and use XHTML and CSS to format it into web reports.
Various DBMSs are supported, such as Oracle, MS Sql, Postgress, SQLite, MySQL, any PDO compliant DBMS ... And there are quite some reasons for considering Forena.
Refer to the example in my answer to How to retrieve data directly from a Drupal database to get an idea about using Forena, i.e.:
- establish a DB connection.
- a custom SQL query.
- a custom report.
Forena can also be used for importing data (from an external database ...) into a Drupal site, using its integration with the feeds module. Or you can use its integration with the views module to create views about data retrieved from such external database.
Refer to the available community documentation for (way) more details, and/or the sample reports and graphs in the demo site (which processes data stored in an SQLite database, one of the supported DBMSes).