more generic API in statsdb
fb-stats now inserts on sqlite using the statsdb module