-fixing call that expects a boolean to $DB->insert_record()
-using set_config() instead of DB
-ddb/events.php => removing commented out code
-using frankenstyle prefix for all global functions