Use GORM AutoMigrate instead of raw SQL to create the database_versions table, since PostgreSQL does not support the datetime type used in the raw SQL (it requires timestamp).