added stats table creation to standalone script