Cleanup
Add auto transaction option. It doesn't cause performance degradation and fixes long startup when the db wasn't close properly
Merge pull request #2 from ten0s/master

Long recovering fix