Add transaction functions
Handle recursive case for db fns
Merge pull request #7 from thegeez/transact-fns

Add transaction functions