update ui: now login has a wx dialog.
create mainframe window.
fix a bug in about dialog.
close database connection when exit mainframe.