changed database to add image + thumbnail storage