Correct variable name in prepare_item_for_database()