TST: sql skip tests at class level if database is not available
Merge pull request #9110 from jorisvandenbossche/sql-testing-skipclass

TST: sql skip tests at class level if database is not available