wrote baisc db tests