Wrap db insertion in function because queue messes it up
Pass callback to insertion
Chain the queue
Well, this is embarrassing. putImage -> putFile
Apparently insert returns an array in its callback