extra customization for cursors

A function can be passed to operate on newly created connections