setting and testing of basic db