Some format changes and bug fixings.

Add SQL scripts to initialize the database "teambuilding" (run initdb.bat).