SQL in place for capturing votes