func InitDatabase(c *config.ConfigToml) *PostgreSQL {
	pg := PostgreSQL{}
	pg.cfg = c
	pg.Connect(c)
	return &pg
}
InitDatabase is only there to sets up the configuration of the database.
This adapters need to connect to the database before any actions.
package postgresql
import (
	"database/sql"
	"errors"
	"fmt"
	"strings"
	"github.com/netm4ul/netm4ul/core/config"
	"github.com/jinzhu/gorm"
	_ "github.com/jinzhu/gorm/dialects/postgres"
	log "github.com/sirupsen/logrus"
)
type PostgreSQL struct {
	cfg *config.ConfigToml
	db  *gorm.DB
}