Add new media_db_get_all_media function

We'll use this to probe media information in future instead of
reimporting the entire collection on start