Title: Algebraic Structures in Automata and Database Theory