Fixed not finding an existing database.