Add support for statistic metadata to sqlite