add sqlite to imageapp, integrate cookieapp