Postgresql data definitions for reddit counting