added db flag for loyalty links