Maybe some hints are at the OSM wiki about http://wiki.openstreetmap.org/wiki/Databases_and_data_access_APIs