Implemented the database logging and fixed a casting bug in the rating updates
Reverted to impure ratings, but it sucks
This rating stuff sucks ass, I give up, should remove it