Fix bug #1

Fixed start-up error when exiting after choosing database file if it was
invalidly specified before. Instead, it will automatically close the
preference window after specifying the path and refresh the database
with the newly specified path.
Release v0.0.2-beta