make only one connection to every database
Merge pull request #31 from ssbunyk/master

make only one connection to every database