Uncommented first portion of spooky code. videos.length is currently null, have to troubleshoot further, but once working and writing to database it should be fairly easy to impliment the second section and impliment synchronous execution