Plugin feedback, help to repair bugs

Hello, i write a simple reputation with sqlite databas and it’s something wrong. entire plugin works only for first record in database for the rest nothing happen. I think this is something with database but i don’t know where and how to repair that

my code: https://github.com/LSDkk5/RepSystem