routine names and more

* deleting routines wasn't working when there were logged exercises attached to it [fixed]
* a user couldn't create a routine with a name that they didn't have but another user did [fixed]
* schedule routine page wasn't showing the correct routine because of the above problem (i think that was the problem discussed on skype) [fixed]

this is all i remember right now, probably had a few more stuff fixed and redone