You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: connect.go
    path of file: ./repos/jaeles/database
    
    the code of the file until where you have to start completion: package database

import (
	"github.com/jaeles-project/jaeles/database/models"
	"github.com/jinzhu/gorm"

	// load driver
	_ "github.com/jinzhu/gorm/dialects/sqlite"
)

// DB global DB variable
var DB *gorm.DB

// InitDB init DB connection
func InitDB(DBPath string) (*gorm.DB, error) {
	db, err := gorm.Open("sqlite3", DBPath)
	// turn this on when we go live
	// Disable Logger, don't show any log even errors
	db.LogMode(false)

	if
    
func InitDB(DBPath string) (*gorm.DB, error) {
	db, err := gorm.Open("sqlite3", DBPath)
	// turn this on when we go live
	// Disable Logger, don't show any log even errors
	db.LogMode(false)

	if err == nil {
		DB = db
		db.AutoMigrate(&models.Scans{})
		db.AutoMigrate(&models.Record{})
		db.AutoMigrate(&models.Signature{})
		db.AutoMigrate(&models.User{})
		db.AutoMigrate(&models.Configuration{})
		db.AutoMigrate(&models.Dummy{})
		// table for Out of band stuff
		db.AutoMigrate(&models.Collab{})
		db.AutoMigrate(&models.OutOfBand{})
		db.AutoMigrate(&models.ReqLog{})
		return db, err
	}
	return nil, err
}