generate down up votes tables