creating votes and flags, as well as their resourceful apis