found a bug that occurred when an article was being accessed (and then saved) at the same time (At least I think that was the problem). So I created a new table for article-user relationship. This should mean that it can never be changed while someone has already checked it out as onyl new links are being created. So hopefully that solves the problem, also updated a few other functions