realtime row-counts for postgres/mysql