Successfully adding photos to db from js console