Database Trigger Functionality using Python & MongoDB