added inserting of billing history