database stuff finished except for loading games