Moved create triggers code to a sub to ensure the equality in create and update of VideoDB
Fixed parameter datatype in error output string