Implemented database api for player