by Jason Hardin.
If you are working in Moodle 2 then you have access to db/install.php and db/upgrade.php see http://docs.moodle.org/dev/Installing_and_upgrading_plugin_database_tables#install.php.
To verify tough you are talking about the install and upgrade processes and not adding a block to a course correct?