Add support to configure custom persister classes
Makes Query class extendable