added testcases and examples for standalone db