mysql connection completed for appointments