dlna_get_media_profile checks the profileid before to compare
select returns 0 when no row is availlable, checks the item->filename
simplify the stream_get_container

for several profiles the stream_get_container was used only a strcmp function call.
Instead to call the function and pass few loops and condition, we just check the format from the AV context
migrate dms on VFS API
db closing for DMS, use dlna_db API
include dlna_db.h header file into vfs.c