Very ugly proof-of-concept - writing player xp to database.