replaced tingo with sqlite, implemented image caching