Added context.session.add at end of create_ip_address