Merge pull request #1 from fehmicansaglam/master

Fix tests
Fix for pass-by-value db parameter