add test db query and insert