func (db *Database) InitDatabase() error {
	db.PrepareConnection("")
	err := db.db.InitDatabase()
	db.CleanConnection()
	return err
}
prepare database before the first user
package nodemanager
import (
	"sync"
	"github.com/gelembjuk/democoin/lib/utils"
	"github.com/gelembjuk/democoin/node/database"
)
type Database struct {
	db        database.DBManager
	Logger    *utils.LoggerMan
	Config    database.DatabaseConfig
	lockerObj database.DatabaseLocker
	locallock *sync.Mutex
}
func (db *Database) DB() database.DBManager {
	db.OpenConnectionIfNeeded("", "")
	return db.db
}
func (db *Database) Init() {
	db.locallock = &sync.Mutex{}
	db.PrepareConnection("")
	db.lockerObj = db.db.GetLockerObject()
	db.CleanConnection()
}