bug fixes on simulationDB