db works, added condition, so not 2 appoint on same time (not working
yet)