func (m *Manager) ImportBoard() {
	rows, err := m.DB.Query("SELECT clientID, token, name, nickname, color, crypto, header, items, frequency FROM boards")
	if err != nil {
		logger.Warningf("Unable to query tokens in db: %s", err)
		return
	}
	for rows.Next() {
		var clientID, token, name, header, itemsBulk string
		var nickname, color, crypto bool
		var frequency int
		err = rows.Scan(&clientID, &token, &name, &nickname, &color, &crypto, &header, &itemsBulk, &frequency)
		if err != nil {
			logger.Errorf("Unable to load token from db: %s", err)
			continue
		}
		items := strings.Split(itemsBulk, itemSplit)
		if crypto {
			b := NewCryptoBoard(clientID, items, token, name, header, nickname, color, frequency, lastUpdate, m.Cache, m.Context)
			m.addBoard(true, b, false)
		} else {
			b := NewStockBoard(clientID, items, token, name, header, nickname, color, frequency, lastUpdate)
			m.addBoard(true, b, false)
		}
		logger.Infof("Loaded board from db: %s", name)
	}
	rows.Close()
}
ImportBoard pulls in bots from the provided db
package main
import (
	"database/sql"
	"encoding/json"
	"fmt"
	"io/ioutil"
	"net/http"
	"strings"
	"time"
	"github.com/gorilla/mux"
)
var (
	itemSplit = ";"
)
type BoardRequest struct {
	Items     []string `json:"items"`
	Token     string   `json:"discord_bot_token"`
	Name      string   `json:"name"`
	Header    string   `json:"header"`
	Nickname  bool     `json:"set_nickname"`
	Crypto    bool     `json:"crypto"`
	Color     bool     `json:"set_color"`
	Frequency int      `json:"frequency"`
	ClientID  string   `json:"client_id"`
}