added sqlite in addtion to file as persistence mechanism for stats data