Add python function call to database