Fixed to ignore an exception in querying the old database.

If a user installed this application newly (not updated), there are no
tables in the database.