replaced sql export
replaced sql export again
fixed error with cursorIndex not being set correctly on load
replaced sql export