implement basic file upload for the game
fixed some minor database issues; restrcutre database