code: func ConnectDB(name string) (*sqlx.DB, error) {
  	if len(name) == 0 {
  		dir, err := os.Getwd()
  		if err != nil {
  			return nil, err
  		}
  		name = filepath.Base(dir)
  	}
  	dbConnStr := DBConnectionString(name)
  	log.Debug("connecting to db")
  	return sqlx.Connect("postgres", dbConnStr)
  }
docs: // ConnectDB opens a connection to the database. The name is the name of the
  // database to connect to. If empty, it defaults to the current directory's
  // name.