Change to sqlite3 and tidy up GUI