take image from gallery and camera and save in sqlite