add test for db connection