Moved all tkinter code here.

Separated the sql and gui code for easier module exchange.