Fixed error when first setting database variable.
Fixed error when first setting database variable.

getRecordForFile was not returning the record after creating it, so the UPDATE command would not have the right path.
chipgw/depthview2