fixed github issue #5 (bad integer cast in SQL query for block recent activity)