Implemented database logging function and parameters to all simulations