Gallery Lightbox DB Testing in ajax