Fixed problem with DB update

Database wasn’t being updated on subsequent runs if it was previously
recording when run.

Also changed temp ID to be the video # and not a UUID - the longer
value caused problems with the call the FFMPEG.