add origin_id paramter to add_to_database method