Remove db callbacks when freeing monitor -- also fixes segfault on monitor destructor in Python bindings.