all function to consume cursor and clean ups
Merge branch 'master' of https://github.com/wsantos/motorm