Implemented database api for player ratings