correctly init tmpdb with all data