what us a democracy vs a Republic