Controller/InstallController.php
private function _setupDatabase($db)
    {
        # Execute the SQL to create the tables
        $sqlFile = new File(App::pluginPath('Gallery') . 'Config' . DS . 'cakegallery.sql', false);
        $db->rawQuery($sqlFile->read());
        $sqlFile->close();
    }
private function _setupDatabase($db)
    {
        # Execute the SQL to create the tables
        $sqlFile = new File(App::pluginPath('Gallery') . 'Config' . DS . 'cakegallery.sql', false);
        $db->rawQuery($sqlFile->read());
        $sqlFile->close();
    }
Execute Config/cakegallery.sql to create the tables
Create the config File
@param $db