test database connection before returning native db instance
Merge pull request #4 from mirceaalexandru/master

test database connection before returning native db instance