Study of structural and conformational aspects of carbohydrates by database analysis and theoretical methods