Save Dx and Tx ids from typeaheads to database.