Update Module.php

database's dbname  should is $config->database->dbname