query to check database compatibility level in sql server