Expose cursor_factory to configuration; #10