Inserting records works correctly again

In addition, inserting is only allowed for those appointments who don't have any visitation record yet