So I have learned to create tables using the Setup.php file but have found nada on doing updates and inserts to said table.
$sm = \XF::db()->getSchemaManager();
$sm->createTable('xf_some_table', function(\XF\Db\Schema\Create $table)
{
$table->addColumn('some_id', 'int')->autoIncrement()...