When using embedded initialization mode, we currently check that the database is an embedded database and then see if there are any scripts to apply. If there aren't any scripts this results in an unnecessary call to the database. We should check for scripts first and then check the database's type.