fix tournament indexing bug
password field; conditional compile of local links in header
simple sql generator helper