sqlite database for storing and retrieving image