how is liberalism related to democracy