Database header cleanup and search position by fen