implemented sqlite db for images (ai_id, uri, ip)