So let's look at the most obvious file in the list: includes/database.php:
class database {
       /* ... */
       /**
        * Database object constructor
        * @param string Database host
        * @param string Database user name
        * @param string Database user password
        * @param string Database name
        * @param string Common prefix for all tables
        */
        function database( $host='localhost', $user, $pass, $db, $table_prefix ) {
                // perform a number of fatality checks, then die gracefully
                if (!function_exists( 'mysql_connect' )) {
                        //or die( 'FATAL ERROR: MySQL support not available.  Please check your configuration.' );
                        $mosSystemError = 1;
                        $basePath = dirname( __FILE__ );
                        include $basePath . '/../configuration.php';
                        include $basePath . '/../offline.php';
                        exit();
                }
Well, we immediately see the assumptions about MySQL being the one and only database that FRED will ever connect to. One approach to opening up this file structure to support multiple databases would be: