chessdb needs to be able to execute this function