working flag ajax with json getimginfo and flag db fields