Gave the database a fresh start.

Took some logic that was in the Main method and moved it to the UI class where it belongs.