Create a record and add it to the database.
this |
A media database. |
path |
A path to an appropriate media file. |
The ID for the newly added record. See also the notes for dmap_db_add regarding reference counting. |