changed configure from function to object
persistence now keeps connections alive
Merge pull request #200 from leider/master

new way of persistence