Adding a wait for tables call to avoid failure to execute if the DB is taking a while to load due to size.