I just tried figuring out databases, maybe I'm on the right track, maybe not. I'll come back to it tomorrow. The bug is still there though. Couldn't find where the fault was.