bug fixes

appointments add correctly when created, appointments add correctly on
login. cloud to local now works