Added statistical queries to db_config