Lots of refactoring. Put many hard-coded strings in resource file. Created new listener for click event. Some UI components and db-related objects are now class members.

- Added license and gitignore files.