Fleshing out query implementations for the MySQL backend