added sqlite db to store gps and ap hostory