```ruby
require "logger"
require "sequel"

# This variable is global across all files and is accessible by the entire API.
$db = Sequel.connect("sqlite://database/database.db", :logger => Logger.new("log/db.log"))

Dir.glob("models/*.rb").each do |file|
	require_relative file
end
```

Load the migration extension in the database script.
user
```ruby
require "logger"
require "sequel"

# Load the migration extension so we can do stuff with migrations.
Sequel.extension :migration

# This variable is global across all files and is accessible by the entire API.
$db = Sequel.connect("sqlite://database/database.db", :logger => Logger.new("log/db.log"))

Dir.glob("models/*.rb").each do |file|
	require_relative file
end
```
assistant