Adding in support for using prepared statements and caching with mutation batches. Also fixing a bunch of unit tests