update database call in main python