inserting and getting back the id of the practice