Connects to a database using key value pairs containing the database info. The key/value pairs should match what would be in databases.cfg. I.e. "driver" should be "default" or a driver name (or omitted for the default). For SQLite, only the "database" parameter is needed in addition. For drivers which require external connections, more of the parameters may be needed. In general it is discouraged to use this function. Connections should go through databases.cfg for greatest flexibility on behalf of users.