create db with iterators