photo story saving to database through AJAX