cursor functions
transactions improve and bug fix
Merge branch 'f-sess' into dev

* f-sess:
  transactions improve and bug fix
  cursor functions