Method to return Dialect from connection