Star rating triples up with each click

Okay, so I shall write two different .onReady or do I missunderstand you? I also wonder why you shall not connect the input element to the database? Like I wrote in my description; when I don´t connect it I get no rating at all.