Wip brag

Fix for the brag server code to work with MYSQL database.