Works so far, i dont get that mysql bug i have introduced - its ugly like that but works