Connect to DB only when needed. Deprecate the Tk interface.

Start merging Wx::Controller with Controller; It was nice to
experimrnt with both Wx and Tk interface but is hard to keep them in
sync.