-- added a function and test to connect-or-create DB