Osm_xml_cruncher is a project mainly written in PYTHON and SHELL, it's free.
OSM => db tool
"OSM":http://www.openstreetmap.org/ xml object data files => database tool