Now displays a ProgressDialog when the database is initialized.