edited intergrator.py to take values from database