Some improvements to sumo_db