Added first code fragments for opening / creating a tournament database.

THE CODE IS UNTESTED.
Intermediate, incomplete commit for synching with my main development machine