IPv6 support + add simple test case + allow creation of DB object without 'new' keyword

fixes #6