Wrapper for v.to.db to catch errors arising in some GRASS versions
grass_v.to.db(map, option, type = "line", columns, format)
character; name of the map where values should be uploaded.
character; what values should be uploaded
character; feature type (default = "line")
character; name of the column top upload data to
character; data format of the new columns (if it must be created)
Nothing. Uses v.to.db to populate attribute values from vector features.
Since different versions of GRASS handle v.to.db differently (older versions <= 7.4 need the column to exists. while newer ones create the column) different implementations are necessary