I have a database with images and three information. Name, age and profession. I need that when moving the image of the photo to the right side is marked in the database the value 1. When the photo is moved to the left will be inserted in the database the value 0. I already have the database, just accurate make these inserts by moving the photo lightly or right.