mariadbHasDefault function

Check if default database is available.