Query DB so that user cannot vote more than once