formal check_data api
basic framework of insert; one to one insert