func (s *SqliteDB) AllGroupTerms() (models.GroupTerms, error) {
	values := []models.GroupTerm{}
	if err := s.DB.Select(&values, `SELECT * FROM config_groupterm;`); err != nil {
		return nil, err
	}
	return models.GroupTerms(values), nil
}
AllGroupTerms returns all the group terms.
package db
import (
	"database/sql"
	"fmt"
	"github.com/jmoiron/sqlx"
	_ "github.com/mattn/go-sqlite3"  
	"github.com/tunedmystic/commits.lol/app/models"
)
type SqliteDB struct {
	DB *sqlx.DB
}
func NewSqliteDB(name string) SqliteDB {
	sdb := SqliteDB{
		DB: sqlx.MustConnect("sqlite3", name),
	}
	return sdb
}
func (s *SqliteDB) Close() {
	s.DB.Close()
}
func (s *SqliteDB) AllBadWords() (models.BadWords, error) {
	values := []models.BadWord{}
	if err := s.DB.Select(&values, `SELECT * FROM config_badword;`); err != nil {
		return nil, err
	}
	return models.BadWords(values), nil
}