SQL stuff for TEST insertion into Visits

it makes the procedure if it doesn't exist