You need to define the database connection in sites/default/local.settings.php