Add AsyncQueryHandler for fast insertions in the media table