Begin also refactor of saving results into GridFS (mongo)
Save and retrieve images from database