task-2: wrote db CRUD operations for images info.