Architecture of Databases for Mineralogy and Astrobiology