Replaced HAS_SPATIALREFSYS by a database feature
Replaced no_spatialite by connection features

Refs #22632. Thanks Tim Graham for the review.
Replaced no_mysql by connection features

Refs #22632. Thanks Tim Graham for the review.