Postgresql data definition for livecounting